function init() {
   var params = {};
   params[opensocial.Activity.Field.TITLE] = 
                "This is the <b>activity title</b>.";
   params[opensocial.Activity.Field.BODY] = 
                "This is the <em>activity body.</em>";

   opensocial.requestCreateActivity(opensocial.newActivity(params),
        opensocial.CreateActivityPriority.HIGH, callback);
}

function callback(data) {
   debug.say(data.hadError() ?  "Error." : "Success.");
}

gadgets.util.registerOnLoadHandler(init);

